from datetime import datetime, timezone, timedelta

def get_china_time():
    """获取中国大陆时间（UTC+8）"""
    utc_now = datetime.now(timezone.utc)
    china_tz = timezone(timedelta(hours=8))
    return utc_now.astimezone(china_tz)

def get_china_time_for_update():
    """获取中国大陆时间（用于onupdate）"""
    return get_china_time() 